package com.neusoft.mapper;

import com.neusoft.pojo.SysEmployee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysEmployeeMapper {
    //    List<SysEmployee> getSysEmployee1(String id);
    //    int sysEmployeeInsert(SysEmployee sysEmployee);

//    查询所有员工信息
    List<SysEmployee> getSysEmployee();
//    根据条件查询员工列表
    List<SysEmployee> getSysEmployeeBySearch(String name, String status, String dept);
//    查询所有部门名称
    List<String> getDepts();
//    批量删除
    void deleteEmployee(String[] delArr);
//    添加员工信息
    void addEmployee(SysEmployee emp);
//    编辑员工信息
    void updateEmployee(SysEmployee info);
//    添加待入职员工信息
    void insertWaitingEmployee(SysEmployee waitingEmployee);
//    办理入职
    void handleInduction(String[] inductions, String status, String entryDate);
//    转正
    void becomeFullMember(String[] becomeFulls, String formalDate);
//    待入职页面员工信息列表
    List<SysEmployee> waitingList();
//    编辑待入职页面员工信息
    void updateInduction(SysEmployee info);
    void singleQuit(String workerId);
    List<SysEmployee> searchByName(String name, String status);
    List<SysEmployee> searchByIsTry(String name);
    void updateProbation(SysEmployee info);
    void updateDeptOrPost(String dept, String post, String workerId);
    void quit(String[] quitIds);
}
